/**
 * 系统的业务处理code
 */
package com.hanhai.zrb.model.common.enums;

public enum MsgCodeEnum {
	
	EXCEPTION(-2,"系统异常,不需要给msg"),
	NONLOGIN(-1,"未登录,不需要给msg"),
	BIZFAILED(0,"业务处理失败,需要给msg,前端根据情况决定是否展示"),
	SUCCESSED(1,"请求成功");
	
	
	private int code;
	
	private String desc;
	
	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	private MsgCodeEnum(int code,String desc) {
		this.code = code;
		this.desc = desc;
	}
	
}
